
import 'package:dio/dio.dart';

void getHttp() async{
  try{
    var response = await Dio().get('http://www.baidu.cn');
    print(response);
  }catch(e){
    print(e);
  }
}